package com.qiqidream.admin.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * 菜单表——类型
 * @author QiQiDream
 * @since 2019/12/2 22:10
 */
@Getter
public enum MenuType {
    FOLDER(1,"目录"),
    MENU(2,"菜单"),
    BUTTON(3,"按钮");

    MenuType(int code, String type) {
        this.code = code;
        this.type = type;
    }
    private final int code;

    @JsonValue
    @EnumValue
    private final String type;
}
